/**************************************************************************************
*
*	Copyright (C) 2011 Brent Andrew Chua 
*		
*	Filename	-	Main.cpp
*
*	Description -	Chapter 2 of Beginning C++ Game Programming Book.
*
*	Comments	-	On Loops
*
**************************************************************************************/

#include <iostream>

using namespace std;

int main( void )
{

	bool bPlaying = true;
	char charInput;

	while ( bPlaying )
	{
		// execute some game specific code
		cout << "Processing awesome game code.\n";
		cout << "Hit q to exit." << endl;
		cin >> charInput;

		if ( charInput == 'q' )
		{
			bPlaying = false;
		}
	}

	// Release resources.
	// Uninitialize systems.
	cout << "Game has exited. Good bye!";

	return 0;
}